package cn.edu.klmy.dao;

import cn.edu.klmy.models.course.Course;

import java.util.List;
import java.util.Map;

public interface ICourseDao {

    void addCourse(Course course);

    void removeCourse(String fieldName, Object value);

    void updateCourse(Course course);
    
    boolean courseExists(String courseName);

    public List<Course> getAllCourses();

    public String getCourseName(int courseId);

    List<Course> getCourses(String fieldName, Object value);

    List<Course> getCourses(Map<String, Object[]> filter, int pageNum, int pageSize);

    int getCourseCount(Map<String, Object[]> filter);
}
